package API.DAY11.reflect;

import java.lang.reflect.Method;

public class ReflectDemo7 {
    public static void main(String[] args) throws Exception{

        Class cls = Class.forName("API.DAY10.reflect.Person");
        Object obj = cls.newInstance();

        Method method = cls.getDeclaredMethod("abc");
        method.setAccessible(true);
        method.invoke(obj);
        method.setAccessible(false);
    }
}
